"Expanding button"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<script type="text/javascript" src="//use.typekit.net/rym7bcj.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<div class="container">
<h1>Simple Expanding Effect</h1>
<a href="javascript:void(0);" class="button">Check it out</a><a href="javascript:void(0);" class="button-readmore"><span>Case Study</span></a>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
html, body {
height: 100%;
overflow: hidden;
}
body {
background-color: #202024;
font-family: "freight-sans-pro";
font-weight: 300;
color: #eee;
height: 100%;
font-size: 1.4em;
}
.container {
width: 60%;
margin: auto;
padding-top: 10%;
height: 60%;
}
h1 {
margin-bottom: 15px;
}
.button {
position: relative;
display: inline-block;
color: #202024;
text-decoration: none;
text-transform: uppercase;
background-color: rgba(255,255,255,0.3);
border-radius: 300px;
padding: 8px 24px 8px 24px;
transition: all 0.25s;
vertical-align: top;
margin-right: 10px;
}
.button:hover {
background-color: rgba(255,255,255,0.6);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: